package com.arpa.wms.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 上架明细
 * </p>
 *
 * @author LEO
 * @since 2020-08-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wms_putaway_item")
@ApiModel(value="PutawayItem对象", description="上架明细")
public class PutawayItem extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据标识")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "所属机构")
    @TableField("group_code")
    private String groupCode;

    @ApiModelProperty(value = "上架单号")
    @TableField("putaway_code")
    private String putawayCode;

    @ApiModelProperty(value = "收货单明细编码")
    @TableField("receive_item_code")
    private String receiveItemCode;

    @ApiModelProperty(value = "收货登记编码")
    @TableField("receive_register_code")
    private String receiveRegisterCode;

    @ApiModelProperty(value = "商品编码code")
    @TableField("goods_code")
    private String goodsCode;

    @ApiModelProperty(value = "商品编码")
    @TableField("good_code")
    private String goodCode;

    @ApiModelProperty(value = "商品名称")
    @TableField("goods_name")
    private String goodsName;

    @ApiModelProperty(value = "商品条码")
    @TableField("goods_bar_code")
    private String goodsBarCode;

    @ApiModelProperty(value = "容器号")
    @TableField("container_bar_code")
    private String containerBarCode;

    @ApiModelProperty(value = "容器类型")
    @TableField("container_type")
    private String containerType;

    @ApiModelProperty(value = "商品规格")
    @TableField("spec")
    private String spec;

    @ApiModelProperty(value = "保质期（天）")
    @TableField("expiration_quantity")
    private BigDecimal expirationQuantity;

    @ApiModelProperty(value = "单位")
    @TableField("goods_unit")
    private String goodsUnit;

    @ApiModelProperty(value = "单位名称")
    @TableField("goods_unit_name")
    private String goodsUnitName;

    @ApiModelProperty(value = "基本单位")
    @TableField("basic_unit")
    private String basicUnit;

    @ApiModelProperty(value = "基本单位名称")
    @TableField("basic_unit_name")
    private String basicUnitName;

    @ApiModelProperty(value = "当前商品单位转基本单位件装量")
    @TableField("unit_convert_quantity")
    private BigDecimal unitConvertQuantity;

    @ApiModelProperty(value = "收货数量")
    @TableField("received_quantity")
    private BigDecimal receivedQuantity;

    @ApiModelProperty(value = "已上架数量")
    @TableField("putaway_quantity")
    private BigDecimal putawayQuantity;

    @ApiModelProperty(value = "推荐库位")
    @TableField("recommend_location")
    private String recommendLocation;

    @ApiModelProperty(value = "货品状态")
    @TableField("goods_status")
    private String goodsStatus;

    @ApiModelProperty(value = "货品状态名称")
    @TableField("goods_status_name")
    private String goodsStatusName;

    @ApiModelProperty(value = "库存批次")
    @TableField("lot")
    private String lot;

    @ApiModelProperty(value = "收货批次")
    @TableField("receive_lot")
    private String receiveLot;

    @ApiModelProperty(value = "生产日期")
    @TableField("gmt_manufacture")
    private LocalDateTime gmtManufacture;

    @ApiModelProperty(value = "过期日期")
    @TableField("gmt_expire")
    private LocalDateTime gmtExpire;

    @ApiModelProperty(value = "存货日期")
    @TableField("gmt_stock")
    private LocalDateTime gmtStock;

    @ApiModelProperty(value = "供应商")
    @TableField("supplier")
    private String supplier;

    @ApiModelProperty(value = "序列号")
    @TableField("serial_number")
    private String serialNumber;

    @ApiModelProperty(value = "扩展1")
    @TableField("extend_one")
    private String extendOne;

    @ApiModelProperty(value = "扩展2")
    @TableField("extend_two")
    private String extendTwo;

    @ApiModelProperty(value = "扩展3")
    @TableField("extend_three")
    private BigDecimal extendThree;

    @ApiModelProperty(value = "扩展4")
    @TableField("extend_four")
    private BigDecimal extendFour;

    @ApiModelProperty(value = "扩展5")
    @TableField("extend_five")
    private LocalDateTime extendFive;

    @ApiModelProperty(value = "扩展6")
    @TableField("extend_six")
    private LocalDateTime extendSix;

    @ApiModelProperty(value = "状态;0：待上架:1：上架中；2：上架完成；")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "临时库存code")
    @TableField("temp_inventory_code")
    private String tempInventoryCode;

    @ApiModelProperty(value = "来源单item标识")
    @TableField("source_item_code")
    private String sourceItemCode;

}
